package com.atzhou.service;

import com.atzhou.dao.DepartmentMapper;
import com.atzhou.entity.Department;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DepartmentServeice {
    @Autowired
    private DepartmentMapper departmentMapper;

    /*
     取出所有的部门
     */
    public List<Department> selAll(){
        List<Department> allDepartment = departmentMapper.getAllDepartment();
        return allDepartment;
    }
}
